-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
skybian defaults from skywire-cli visor gen-config -s
#852
Conversation
Ive fixed the Its unclear to me what the cookie path specification is for, pertaining to the hypervisor. Should it be I will also note that for the skybian paths / envs, should consider importing them from some file in skybian instead of hardcoding them as ive done. In order that they can be set in the skybian repo and that setting will be reflected in skywire when importing a go package containing these constants. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks alright.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work.
Everything looks good except for one thing. I think all of these commands should use the
|
It's the intended action for the -p and -s flags to be able to create and replace specific configs. I am not opposed to the removal of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jdknives No, I don't have access to a compatible board. |
This should be ready now with the requested changes |
I will make a package which reflects the skybian installation of skywire which uses hopefully this gets merged soon and I can make those changes. |
Did you run
make format && make check
?yes. There were some errors that appeared to be pre-existing, with
make check
Changes:
-s
flag toskywire-cli visor gen-config
for generating config files with the defaults for skybian.This is useful in the event the config files are messed up, correct config defaults can be re-generated on the running board without the need for skyimager or reflashing the image onto the microSD card.
-p
and-s
flags by combiningreplace
and settingoutput
to the correct / expected path (used by the systemd service)In a typical instance of configs generated by postinstall scripts of a package, the configuration for the hypervisor was previously accomplished by the following:
with this PR, the same output as the above is accomplished with:
Peviously it was not possible to reproduce the configuration file generated by skyimager.
Generating the skybian config file:
Hypervisor
Visor
example output: